inherited FPesquisaPedidoVendas: TFPesquisaPedidoVendas
  Left = 280
  Top = 153
  Caption = 'Pesquisa Pedido Vendas'
  ClientHeight = 488
  OldCreateOrder = True
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel2: TPanel
    inherited BtnLimpar: TBitBtn
      OnClick = BtnLimparClick
    end
    inherited BtnImprimir: TBitBtn
      OnClick = BtnImprimirClick
    end
    inherited BtnSelecionar: TBitBtn
      OnClick = BtnSelecionarClick
    end
  end
  inherited Panel1: TPanel
    Height = 447
    object Label1: TLabel [0]
      Left = 6
      Top = 39
      Width = 32
      Height = 13
      Caption = 'Cliente'
    end
    object Label4: TLabel [1]
      Left = 6
      Top = 7
      Width = 41
      Height = 13
      Caption = 'Empresa'
    end
    object Label7: TLabel [2]
      Left = 304
      Top = 7
      Width = 48
      Height = 13
      Caption = 'N'#176' Pedido'
    end
    inherited DBGrid1: TDBGrid
      Left = 6
      Top = 234
      Width = 397
      Height = 191
      Align = alNone
      TabOrder = 6
      Columns = <
        item
          Expanded = False
          FieldName = 'PED_CODIGO'
          Title.Alignment = taCenter
          Title.Caption = 'N'#176' Pedido'
          Visible = True
        end
        item
          Expanded = False
          FieldName = 'CLI_RAZAO'
          Title.Alignment = taCenter
          Title.Caption = 'Cliente'
          Width = 320
          Visible = True
        end>
    end
    inherited Panel3: TPanel
      Top = 426
      TabOrder = 0
    end
    object ComboCliente: TComboBox
      Left = 56
      Top = 39
      Width = 349
      Height = 21
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 1
      OnEnter = ComboClienteEnter
    end
    object GroupSituacao: TGroupBox
      Left = 6
      Top = 65
      Width = 399
      Height = 46
      Caption = '  Situa'#231#227'o  '
      TabOrder = 3
      object CheckPendente: TCheckBox
        Left = 12
        Top = 19
        Width = 71
        Height = 17
        Caption = 'Pendente'
        TabOrder = 0
        OnClick = CheckPendenteClick
      end
      object CheckNF: TCheckBox
        Left = 120
        Top = 19
        Width = 35
        Height = 17
        Caption = 'NF'
        TabOrder = 1
        OnClick = CheckPendenteClick
      end
      object CheckCancelado: TCheckBox
        Left = 318
        Top = 19
        Width = 71
        Height = 17
        Caption = 'Cancelado'
        TabOrder = 2
        OnClick = CheckPendenteClick
      end
      object CheckNFManual: TCheckBox
        Left = 204
        Top = 19
        Width = 76
        Height = 17
        Caption = 'NF Manual'
        TabOrder = 3
        OnClick = CheckPendenteClick
      end
    end
    object GroupFormPagto: TGroupBox
      Left = 6
      Top = 121
      Width = 139
      Height = 49
      Caption = '  Forma de Pagamento  '
      TabOrder = 4
      object CheckAVista: TCheckBox
        Left = 12
        Top = 20
        Width = 52
        Height = 17
        Caption = 'A Vista'
        TabOrder = 0
        OnClick = CheckAVistaClick
      end
      object CheckFaturado: TCheckBox
        Left = 72
        Top = 20
        Width = 62
        Height = 17
        Caption = 'Faturado'
        TabOrder = 1
        OnClick = CheckAVistaClick
      end
    end
    object GroupBox3: TGroupBox
      Left = 150
      Top = 121
      Width = 255
      Height = 49
      Caption = '  Per'#237'odo  '
      TabOrder = 5
      object Label2: TLabel
        Left = 12
        Top = 18
        Width = 14
        Height = 13
        Caption = 'De'
      end
      object Label3: TLabel
        Left = 137
        Top = 18
        Width = 6
        Height = 13
        Caption = #224
      end
      object DateFinal: TDateEdit
        Left = 151
        Top = 17
        Width = 97
        Height = 21
        NumGlyphs = 2
        TabOrder = 0
      end
      object DateInicial: TDateEdit
        Left = 32
        Top = 18
        Width = 97
        Height = 21
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object DBLEmpresa: TDBLookupComboBox
      Left = 57
      Top = 7
      Width = 239
      Height = 21
      KeyField = 'EMP_CODIGO'
      ListField = 'EMP_RAZAO'
      ListSource = DSEmpresa
      TabOrder = 7
    end
    object GroupApresItens: TGroupBox
      Left = 151
      Top = 177
      Width = 110
      Height = 50
      Caption = '  Apresentar itens?  '
      TabOrder = 8
      object RadioSim: TRadioButton
        Left = 8
        Top = 24
        Width = 49
        Height = 14
        Caption = 'Sim'
        Checked = True
        TabOrder = 0
        TabStop = True
      end
      object RadioNao: TRadioButton
        Left = 58
        Top = 24
        Width = 45
        Height = 14
        Caption = 'N'#227'o'
        TabOrder = 1
      end
    end
    object GroupBoxQTD: TGroupBox
      Left = 6
      Top = 177
      Width = 140
      Height = 50
      Caption = '  Qtd Itens  '
      TabOrder = 9
      object Label5: TLabel
        Left = 4
        Top = 18
        Width = 14
        Height = 13
        Caption = 'De'
      end
      object Label6: TLabel
        Left = 74
        Top = 18
        Width = 6
        Height = 13
        Caption = #224
      end
      object Qtd1: TEdit
        Left = 22
        Top = 17
        Width = 48
        Height = 21
        TabOrder = 0
        OnExit = Qtd1Exit
      end
      object Qtd2: TEdit
        Left = 86
        Top = 17
        Width = 48
        Height = 21
        TabOrder = 1
      end
    end
    object EdNPedido: TEdit
      Left = 359
      Top = 7
      Width = 45
      Height = 21
      TabOrder = 2
      OnExit = Qtd1Exit
    end
    object CheckApresentarCanceladas: TCheckBox
      Left = 264
      Top = 200
      Width = 143
      Height = 17
      Caption = 'Apresentar Chaves Canc. '
      TabOrder = 10
    end
  end
  inherited QPesquisa: TQuery
    RequestLive = True
    SQL.Strings = (
      'SELECT '
      '  PEDIDOVENDA.PED_CODIGO,'
      '  PEDIDOVENDA.PED_DATA,'
      '  PEDIDOVENDA.FORMA_PAGAMENTO_LOGISTICA,'
      '  PEDIDOVENDA.PED_SITUACAO,'
      '  PEDIDOVENDA.PED_DATASITUACAO,'
      '  CLIENTE.HIDROMETRO_LOGISITICA,'
      '  PEDIDOVENDA.NUMERO_HIDROMETRO_FIM_LOGISTICA,'
      '  CLIENTE.CLI_RAZAO,'
      '  ITENSPEDIDOVENDA.ITENSPED_CODIGO,'
      '  ITENSPEDIDOVENDA.DATA_LOGISTICA,'
      '  ITENSPEDIDOVENDA.ITENSPED_QUANTIDADE,'
      '  ITENSPEDIDOVENDA.ITENSPED_VALORUNIT,'
      '  ITENSPEDIDOVENDA.ITENSPED_VALORTOTAL,'
      '  ITENSPEDIDOVENDA.NUMERO_BA_LOGISTICA,'
      '  CLIENTE.CLI_CODIGO'
      'FROM'
      ' ITENSPEDIDOVENDA'
      
        ' INNER JOIN PEDIDOVENDA ON (ITENSPEDIDOVENDA.ITENSPED_PEDIDO=PED' +
        'IDOVENDA.PED_CODIGO)'
      
        ' INNER JOIN CLIENTE ON (CLIENTE.CLI_CODIGO=PEDIDOVENDA.PED_CLIEN' +
        'TE)')
    Left = 352
    Top = 277
  end
  inherited DSPesquisa: TDataSource
    DataSet = QPesquisas
    Left = 304
    Top = 281
  end
  object DSCliente: TDataSource
    DataSet = DMGestao.QCliente
    Left = 312
    Top = 344
  end
  object QPesquisas: TQuery
    DatabaseName = 'base'
    Left = 152
    Top = 304
  end
  object DSEmpresa: TDataSource
    DataSet = DMGestao.QEmpresa
    Left = 224
    Top = 288
  end
  object DsGrid: TDataSource
    DataSet = QPesquisa
    Left = 192
    Top = 336
  end
end
